import { WeaTools } from 'ecCom';

export const getCustomerAdd = params => // 新建客户表单接口/
  WeaTools.callApi('/api/crm/customer/customerAdd', 'GET', params);


export const getCustomerType = params => // 客户类型接口/api/crm/customer/customerType
  WeaTools.callApi('/api/crm/customer/customerType', 'GET', params)
;

export const getCustomerSave = params => // 新建客户保存接口/api/crm/customer/customerSave
  WeaTools.callApi('/api/crm/customer/customerSave', 'POST', params)
;

export const getMyCustomerListForAdd = params => // 新建客户时，搜索客户接口/api/crm/customer/myCustomerListForAdd
  WeaTools.callApi('/api/crm/customer/myCustomerListForAdd', 'GET', params)
;

/** --------------------------------------------------------------- */
export const getCrmImportDatas = params => // 客户批量导入信息
  WeaTools.callApi('/api/crm/customer/crmImportDatas', 'GET', params)
;

export const crmImport = params => // 客户批量导入的接口
  WeaTools.callApi('/api/crm/customer/crmImport', 'GET', params)
;

export const generateExcel = params => // api/crm/customer/generateExcel 格式化客户导入模板
  WeaTools.callApi('/api/crm/customer/generateExcel', 'GET', params)
;
/** -----------------------------导入日志----------------------------------* */
export const getToDBLog = params => // 获取日志
  WeaTools.callApi('/api/crm/customer/crmToDBLog', 'GET', params)
;
export const getToDBLogDeatil = params => // 获取日志详情
  WeaTools.callApi('/api/crm/customer/crmToDBLogDetail', 'GET', params)
;
export const getImportLogConditions = params => // 获取日志高级搜索列表
  WeaTools.callApi('/api/crm/customer/getImportLogConditions', 'GET', params)
;
export const getAddressInfo = params => // 根据区县获取 国家省份城市
  WeaTools.callApi('/api/crm/maint/customer/getAddressInfo', 'GET', params)
;
